<template>
  <div>
    <div class="card" v-for="item in vitaeData" :key="item.cid">
      <div class="flex-center">
        <div class="title">
          <img src="@/assets/img/resume.svg" class="title-icon">
          <span>{{ item.job_name }}</span>
        </div>
        <div class="flex-center">
          <el-button @click="update(item.cid)" type="primary" round size="small">编辑</el-button>
          <el-button @click="del()" type="danger" round size="small">删除</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { defineProps,defineEmits } from 'vue';
const props = defineProps({
  vitaeData: Array
})
const emits = defineEmits(['delVitae','updateVitae'])
const del = (rid)=>{
  emits('delVitae',rid)
}
const update = (rid)=>{
  emits('updateVitae',rid)
}
</script>